<?php require_once('conf.inc'); ?>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
	<META http-equiv="Content-Type" content="text/html; charset=utf-8">
	<title><?php echo COMPANY ?> - Управление сайтом</title>
	<link rel=stylesheet href='../cf.css'    		type='text/css'></link> 
	<link rel=stylesheet href='../grid.css'  		type='text/css'></link>
	<link rel=stylesheet href='../controls.css' 		type='text/css'></link>
	<script lang=javascript src='../cf.js'       			type='text/javascript'></script>
	<script lang=javascript src='../controls.js'    			type='text/javascript'></script>
	<script lang=javascript src="../ckeditor/ckeditor.js" 	type='text/javascript'></script>

	<style>
		A:link,  A:visited  { 
			color: Navy; 
			text-decoration: none; 
		}
		A:hover, A:active  { 
			color: Blue; 
			text-decoration: underline; 
		}
		body {
			margin: 0px;
			padding: 0px;
		}
		td.header {
			font-weight: bold;
			font-variant: small-caps;
		}
		td.content {
		}
		div.foot { 
			font-family: "arial, Helvetica, sans-serif, verdana"; 
			font-size: 11px; 
			color: #0066CC; 
			padding: 10px 0px 0px 0px; 
		}
		div.btndelim {
			border-left: gray 1px solid;
			margin-left: 10px;
			width: 10px;
		}
		
		button.pict {
			border: 0px;
			cursor: hand;
		}
		
		button.pict img {
			margin: 0px;
			padding: 0px;
			width: 16px;
			height: 16px;
			border: 0px;
		}		
	</style>
</head>
<body>
	
<script lang=javascript>
	function openWindow(url) 
	{
		if (url) {
			window.open(url,'_blank','location=no,menubar=no,toolbar=no,resizable=yes,scrollbars=yes,status=no');
		}
	}
	
	function createEditor(ctlName) 
	{
		CKEDITOR.replace(ctlName);
	}
</script>

<table width=100% height=100%>
	<tr>
		<td class=header width=100%>
			<table width=100%>
				<tr>
					<td class=caption>
						Система управления содержанием сайта <?php echo COMPANY ?>
					</td>
				</tr>
				<tr>
					<td width=100% style="white-space:nowrap; border-bottom: 1px solid buttonface; overflow-x:visible;">
						<?php
							function renderPath() {
								global $path;
								$first = true;
								foreach ($path as $page) {
									if (!$first) {
										echo ' / ';
									}
									$first = false;
									if (is_array($page)) {
										echo "<a href='$page[1]'>$page[0]</a>";
									}
									else {
										echo $page;
									}
								}
							}
							renderPath();
						?>
					</td>
				</tr>
			</table>
		</td>
	</tr>
	<tr height=100%>
		<td class=content valign=top>